import jsonschema
schema={
    "type":"object",
    "properties":{
        "success": {"const":True},
        "name":{"const":"李四"},
        "height":{"const":1.93},
        "addr":{"const":None}
    }
}
json_data= {
    "success":True,
    "name":"李四",
    "height":1.93,
    "addr":None
}
res=jsonschema.validate(instance=json_data,schema=schema)
print("校验结果:",res)